package cn.itsource.pet.controller;

import cn.itsource.basic.util.AjaxResult;
import cn.itsource.pet.pojo.dto.OrderPetAcquisitionDto;
import cn.itsource.pet.service.IOrderPetAcquisitionService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 宠物类型控制器
 */
@RestController
@RequestMapping("/orderPetAcquisition")
@Api(tags = "宠物类型管理", description = "宠物类型操作接口")
public class OrderPetAcquisitionController {

    @Autowired
    private IOrderPetAcquisitionService orderService;


    @PostMapping("createOrder")
    public AjaxResult order(@RequestBody OrderPetAcquisitionDto orderDto){
        //生成宠物收购订单
        return orderService.createOrder(orderDto);

    }

}
